package com.qf.purchasing.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "z_schedule")
public class Schedule {
    public static final String COL_ID = "id";
    public static final String COL_TITLE = "title";
    public static final String COL_YEAR = "year";
    public static final String COL_LINK_ID = "link_id";
    public static final String COL_TRANSACTOR = "transactor";
    public static final String COL_TIME = "time";
    public static final String COL_DETAIL_ID = "detail_id";
    public static final String COL_STATUS = "status";
    /**
     * 计划id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;
    /**
     * 计划标题
     */
    @TableField(value = "title")
    private String title;
    /**
     * 采购年度
     */
    @TableField(value = "`year`")
    private Integer year;
    /**
     * 环节id
     */
    @TableField(value = "link_id")
    private Integer linkId;
    /**
     * 办理人（关联员工表id）
     */
    @TableField(value = "transactor_id")
    private Integer transactorId;
    /**
     * 最新操作时间
     */
    @TableField(value = "`time`")
    private Date time;
    /**
     * detail
     */
    @TableField(value = "`status`")
    @TableLogic(delval = "0", value = "1")
    private Integer status;
}